package com.example.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.seckill.pojo.Goods;
import com.example.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author KingCrimson
 * @since 2022-08-09
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
    * @Description: 获取商品列表
    * @Param:
    * @return:
    * @Author: KingCrimson
    * @Date: 2022/8/9
    */
    List<GoodsVo> findGoodsVo();

    /**
    * @Description: 获取商品详情
    * @Param: 
    * @return: 
    * @Author: KingCrimson
    * @Date: 2022/8/9
    */
    GoodsVo findGoodsVoByGoodsId(Long goodsId);
}
